package com.dao;

import com.entity.Areas;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @program: honye-fang
 * @description:
 * @author: Baiyyy
 * @create: 2025-02-14 11:41
 **/
@Mapper
public interface AreaMapper {
    //查询所有省级区域
    List<Areas> findProvince();

    //根据省id查询该省下的市
    List<Areas> findCityByProvinceId(@Param("provinceId") Integer provinceId);

    //根据市id查询该市下的区
    List<Areas> findAreaByCityId(@Param("cityId") Integer cityId);
}
